package ejb;

import javax.annotation.Resource;
import javax.ejb.LocalBean;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import model.Governor;
import utils.AbstractBean;
import dto.GovernorDTO;
import entitymanagers.GovernorManager;


@Stateless
@LocalBean
public class GovernorManagerBean extends AbstractBean<Governor> implements GovernorManager{
	
	@PersistenceContext
	private EntityManager em;
	@Resource
	private SessionContext context;
	
	public GovernorManagerBean() {
		super(Governor.class);
	
	}

	//@Override
	public GovernorDTO[] getPastGovernors() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected EntityManager getEntityManager() {
		return em;
	}

}
